package com.atguigu.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
//@TableName("user") //设置实体类对应的表名称
public class User {
    @TableId //将这个属性作为主键
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
